package com.platform.web.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Knife4j接口文档配置
 */
@Configuration
public class Knife4jConfig {
    @Bean
    public OpenAPI customOpenApi() {
        Info info = new Info()
                .title("接口文档")
                .description("**项目接口文档**")
                .version("v1.0.0")
                .contact(new Contact().name("zhaowei"));
        return new OpenAPI().info(info);
    }
}
